﻿using Kingdee.BOS.Core.Report;

using Kingdee.BOS.Util;
using NS;

//using Kingdee.K3.SCM.App.Purchase.Report;

using System.ComponentModel;



namespace NS

{

    /// <summary>

    /// 【账表服务插件】使用高级过滤

    /// https://vip.kingdee.com/article/96303660623174656

    /// </summary>

    [Description("【账表服务插件】使用高级过滤"), HotUpdate]

    public class UseBatchFilterReportPlugIn : ProcurementExecutionReport

    {

        public override void BuilderReportSqlAndTempTable(IRptParams filter, string tableName)

        {

            // 快捷过滤条件已自动存放在FilterParameter.CustomFilter中，账表插件需要取值后自行封装成SQL过滤条件

            var customFilter = filter.FilterParameter.CustomFilter;

            // 高级过滤条件已自动存放在FilterParameter.FilterString中，账表插件可以直接拿来使用

            var commonFilter = filter.FilterParameter.FilterString;

            // TODO

            base.BuilderReportSqlAndTempTable(filter, tableName);

        }

    }

}
